package com.fsserver.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支付交易实体类
 * Payment Transaction Entity
 *
 * @author fsserver
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("payment_transaction")
public class PaymentTransaction extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 交易ID
     * Transaction ID
     */
    private Long id;

    /**
     * 交易号
     * Transaction number
     */
    private String transactionNo;

    /**
     * 订单号
     * Order number
     */
    private String orderNo;

    /**
     * 支付类型
     * Payment type
     */
    private String paymentType;

    /**
     * 交易金额
     * Transaction amount
     */
    private BigDecimal amount;

    /**
     * 交易币种
     * Transaction currency
     */
    private String currency;

    /**
     * 交易状态
     * Transaction status
     */
    private String status;

    /**
     * 第三方交易号
     * Third-party transaction number
     */
    private String thirdPartyTransactionNo;

    /**
     * 第三方交易状态
     * Third-party transaction status
     */
    private String thirdPartyTransactionStatus;

    /**
     * 第三方交易数据
     * Third-party transaction data
     */
    private String thirdPartyTransactionData;

    /**
     * 用户ID
     * User ID
     */
    private Long userId;

    /**
     * 用户名称
     * User name
     */
    private String userName;

    /**
     * 用户IP
     * User IP
     */
    private String userIp;

    /**
     * 支付时间
     * Payment time
     */
    private Date paymentTime;

    /**
     * 备注
     * Remarks
     */
    private String remarks;
} 